<?php get_header(); ?>

	<!-- main body of #main -->
    <div id="main" role="main">
        <div class="home-slider">
        	<?php echo do_shortcode('[rev_slider banner]'); ?>        
            <p class="home-slider-shadow sprite"></p>
        </div>
        <section class="container">
            <ul class="home">
                <li class="home-promotion">
                    <ul class="row">
                        <li class="col-md-10">
                            <p>CHƯƠNG TRÌNH PROMOTION MỚI NHẤT CỦA AGILSUN</p>
                            <p> Maecenas eu metus et mauris fermentum pulvinar. Duis nec libero sed elit facilisis ornare sed sodales orci. 
                                Mauris ultricies dolor eu dolor ultrices dictum. </p>
                        </li>
                        <li class="col-md-2"> <a href="#">Purchase now</a> </li>
                    </ul>
                </li>
                <li class="home-service">                    
                    <ul class="row">
                        <li class="col-md-4 row"> <span class="home-develop-icon sprite"></span>
                            <h1>PHÁT TRIỂN ỨNG DỤNG</h1>
                            <p> 
                                <?php $page = get_page_by_title('Phát triển ứng dụng');
                                echo $page->post_excerpt; ?> 
                            </p>
                            <a href="<?php agilsun_get_permalink_page('Phát triển ứng dụng'); ?>">xem thêm</a>
                        </li>
                        <li class="col-md-4 row"> <span class="home-maketing-icon sprite"></span>
                            <h1>MARKETING ONLINE</h1>
                            <p> 
                                <?php $page = get_page_by_title('Marketing Online');
                                echo $page->post_excerpt; ?>
                            </p>
                            <a href="<?php agilsun_get_permalink_page('Marketing Online'); ?>">xem thêm</a> 
                        </li>
                        <li class="col-md-4 row"> <span class="home-seo-icon sprite"></span>
                            <h1>S.E.O</h1>
                            <p> 
                                <?php $page = get_page_by_title('S.E.O');
                                echo $page->post_excerpt; ?>
                            </p>
                            <a href="<?php agilsun_get_permalink_page('S.E.O'); ?>">xem thêm</a>
                        </li>
                    </ul>
                    <span class="home-service-shadow sprite"> </span> </li>
                <li class="row">                                          
                        <?php dynamic_sidebar('Note'); ?>                    
                        <?php include_once ('include/news-slide.php'); ?>
                </li>
                <li class="home-project">
                    <h1> DỰ ÁN </h1>
                    <div id="related2" class="grid_9 flexslider">
                        <ul class="slides">
                        	
                            <?php 	
								$args = array(
											'posts_per_page' => 12,
											'post_type' => 'project'
										);
								
								$projects_query = new WP_Query($args);
							?>
							<?php if($projects_query->have_posts()) : ?>
							<?php while($projects_query->have_posts()) : $projects_query->the_post() ?>
                        
                            <li class="m-thumb entry-image hover-content">
                            	<a href="<?php the_permalink(); ?>" class="hover-content">
									<?php the_post_thumbnail('psize'); ?>
                                </a>
                                <h2> <?php the_title(); ?> </h2>
                                <p> <?php echo get_field('short_description'); ?> </p>
                            </li>
                            
                            <?php endwhile; ?>
                            <?php endif; ?>
                        </ul>
                    </div>
                </li>
            </ul>
        </section>
    </div>
    <!-- end of div#main -->

<?php get_footer(); ?>